pub mod baidu;
pub mod duckduck;
pub mod google;
use std::fmt::Display;

#[derive(Debug, Clone)]
pub struct WebSearchResult {
    pub title: String,
    pub href: String
}


impl WebSearchResult {
    pub fn new(title: String, href: String) -> Self {
        Self { title, href }
    }
}

impl Display for WebSearchResult {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        write!(f, "{}: {}", self.title, self.href)
    }
}